projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeba575
)
iconview: fix a typo while removing the a11y adjustment weak ref
author
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 6 Sep 2011 22:26:54 +0000
(18:26 -0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 6 Sep 2011 23:09:19 +0000
(19:09 -0400)
The code sets old_adj_ptr to the location containing the old weak ref,
but then wants to remove a weak ref from &view->old_hadj, causing warnings
when disposing the widget.
gtk/gtkiconview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconview.c
b/gtk/gtkiconview.c
index a252e0f745e0a2c10ccf85380bd928e6d6a6cc8f..8b4a184473768e7dbed8fccc463c17526221ba89 100644
(file)
--- a/
gtk/gtkiconview.c
+++ b/
gtk/gtkiconview.c
@@
-8089,7
+8089,7
@@
gtk_icon_view_accessible_set_adjustment (AtkObject *accessible,
if (*old_adj_ptr)
{
g_object_remove_weak_pointer (G_OBJECT (*old_adj_ptr),
- (gpointer *)
&view->old_hadj
);
+ (gpointer *)
old_adj_ptr
);
g_signal_handlers_disconnect_by_func (*old_adj_ptr,
gtk_icon_view_accessible_adjustment_changed,
accessible);